package model;

/**
 * the board class is in charge of the chess logic
 */
public class Board {

    /**
     * reference to currently selected figure (null when nothing is selected)
     */
    private String selectedFig;

    /**
     * reference to currently selected match
     */
    private Match selectedMatch;

    /**
     * constant for an empty field
     */
    public static final int FIELD_EMPTY = 0;
    /**
     * constant for a field with a white figure
     */
    public static final int FIELD_WHITE_FIGURE = 1;
    /**
     * constant for a field with a black figure
     */
    public static final int FIELD_BLACK_FIGURE = 2;

    /**
     * constructor of the board class
     * 
     * @param selectedMatch
     *            reference to currently selected match
     */
    public Board( Match selectedMatch )
    {
	this.selectedMatch = selectedMatch;
    }

    /**
     * setter for selectedFig
     * 
     * @param selectedFig
     *            for example "B3"
     */
    public final void setSelectedFig( String selectedFig )
    {
	this.selectedFig = selectedFig;
    }

    /**
     * setter for selectedMatch
     * 
     * @param selectedMatch
     *            reference to currently selected match
     */
    public final void setSelectedMatch( Match selectedMatch )
    {
	this.selectedMatch = selectedMatch;
    }

}
